package com.indexingsystem.boss.entity;

import java.io.Serializable;

/**
 * idx_task
 * @author 
 */
public class IdxTaskWithBLOBs extends IdxTask implements Serializable {
    /**
     * 刷新令牌
     */
    private String arrchildid;

    /**
     * 任务描述
     */
    private String description;

    private static final long serialVersionUID = 1L;

    public String getArrchildid() {
        return arrchildid;
    }

    public void setArrchildid(String arrchildid) {
        this.arrchildid = arrchildid;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        IdxTaskWithBLOBs other = (IdxTaskWithBLOBs) that;
        return (this.getTaskId() == null ? other.getTaskId() == null : this.getTaskId().equals(other.getTaskId()))
            && (this.getSiteId() == null ? other.getSiteId() == null : this.getSiteId().equals(other.getSiteId()))
            && (this.getTaskType() == null ? other.getTaskType() == null : this.getTaskType().equals(other.getTaskType()))
            && (this.getTaskStatus() == null ? other.getTaskStatus() == null : this.getTaskStatus().equals(other.getTaskStatus()))
            && (this.getParentid() == null ? other.getParentid() == null : this.getParentid().equals(other.getParentid()))
            && (this.getArrparentid() == null ? other.getArrparentid() == null : this.getArrparentid().equals(other.getArrparentid()))
            && (this.getChild() == null ? other.getChild() == null : this.getChild().equals(other.getChild()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getListorder() == null ? other.getListorder() == null : this.getListorder().equals(other.getListorder()))
            && (this.getCheckStatus() == null ? other.getCheckStatus() == null : this.getCheckStatus().equals(other.getCheckStatus()))
            && (this.getTaskCheckBy() == null ? other.getTaskCheckBy() == null : this.getTaskCheckBy().equals(other.getTaskCheckBy()))
            && (this.getAssignDate() == null ? other.getAssignDate() == null : this.getAssignDate().equals(other.getAssignDate()))
            && (this.getPlanCompleteDate() == null ? other.getPlanCompleteDate() == null : this.getPlanCompleteDate().equals(other.getPlanCompleteDate()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateBy() == null ? other.getCreateBy() == null : this.getCreateBy().equals(other.getCreateBy()))
            && (this.getArrchildid() == null ? other.getArrchildid() == null : this.getArrchildid().equals(other.getArrchildid()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getTaskId() == null) ? 0 : getTaskId().hashCode());
        result = prime * result + ((getSiteId() == null) ? 0 : getSiteId().hashCode());
        result = prime * result + ((getTaskType() == null) ? 0 : getTaskType().hashCode());
        result = prime * result + ((getTaskStatus() == null) ? 0 : getTaskStatus().hashCode());
        result = prime * result + ((getParentid() == null) ? 0 : getParentid().hashCode());
        result = prime * result + ((getArrparentid() == null) ? 0 : getArrparentid().hashCode());
        result = prime * result + ((getChild() == null) ? 0 : getChild().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getListorder() == null) ? 0 : getListorder().hashCode());
        result = prime * result + ((getCheckStatus() == null) ? 0 : getCheckStatus().hashCode());
        result = prime * result + ((getTaskCheckBy() == null) ? 0 : getTaskCheckBy().hashCode());
        result = prime * result + ((getAssignDate() == null) ? 0 : getAssignDate().hashCode());
        result = prime * result + ((getPlanCompleteDate() == null) ? 0 : getPlanCompleteDate().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateBy() == null) ? 0 : getCreateBy().hashCode());
        result = prime * result + ((getArrchildid() == null) ? 0 : getArrchildid().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", arrchildid=").append(arrchildid);
        sb.append(", description=").append(description);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}